﻿#parse("_header.html")
<div id="content">
  <!--  ${postmessage}--><!--鎼滅储鏃剁敤鏉ユ樉绀哄垪琛ㄧ殑鎼滅储淇℃伅-->
    #if($isdefault==1)<!--鍒ゆ柇鏄惁鏄椤?->
        #foreach($item in $topposts)<!--閬嶅巻鏂囩珷鍒楄〃-->
        <div class="post">
            <h2 class="post-title">[缃《]<a href="$base.Url("/Post.aspx?id=${item.ID}")">${item.title}</a></h2> <!--濡傛灉鏈夌疆椤舵枃绔狅紝鍒欏厛鏄剧ず缃《-->
        </div>
        #end
    #end
    #foreach($item in $posts) <!--閬嶅巻鏅€氭枃绔?->
    <div id="post-${item.postid}" class="post">
        <h2 class="post-title"><a href="$base.Url("/Post.aspx?id=${item.ID}")">${item.title}</a> </h2>
        <div class="post-meta">
            <span class="post-author">$base.getAuthorLink($item.userid)</span>
            <span class="post-date">$item.createdate.tostring("yyyy-MM-dd")</span>
            <span class="post-category">$base.getPostCatagoryLink($item.TypeID)</span>
            <span class="post-view"><a href="${item.url}">娴忚(${item.viewcount})</a></span>
            <span class="post-comment"><a href="${item.url}#comments">璇勮($item.commentcount)</a></span>
        </div>
        <div class="post-content">
            $!{item.Summary}
            <p>
                <a href="$base.Url("/Post.aspx?id=${item.ID}")">璇︽儏...</a>
            </p>
        </div>
    </div>
    #end
    #if($posts.count==0)
    <div class="post">
        <p>鏆傛棤瀵瑰簲鏂囩珷</p>
    </div>
    #end
    ${pager}
</div>
#parse("_sidebar.html")
#parse("_footer.html")